package edu.hebeu.entity;

/**
 * 登录的响应
 */
public class LoginResponse {
    private int code; // 自定义状态码
    private String msg; // 消息
    private String token; // token
    private long expire; // token过期时间，对应的日期是：时间戳除以1000(以秒计)

    @Override
    public String toString() {
        return "LoginResponse{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", token='" + token + '\'' +
                ", expire=" + expire +
                '}';
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public long getExpire() {
        return expire;
    }

    public void setExpire(long expire) {
        this.expire = expire;
    }
}
